package com.hkts.flow.manager.api;

import com.hkts.flow.feign.FeignInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @ClassNameApiFlowableTestResource
 * @Description
 * @Author yck
 * @Date2020-12-07 11:02
 * @Version V1.0
 **/
@RestController
@RequestMapping("/rest/test")
public class ApiFlowableTestResource {
    @Autowired
    private FeignInterface feignInterface;

    @PostMapping(value = "/userInfo")
    public Map<String,Object> userInfo(){
        Map<String, Object> stringObjectMap = feignInterface.remoteUserInfo();
        return stringObjectMap;
    }
}
